package com.suep.teacher_manage.application.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class AddTeacherRequestDto {
    @NotEmpty(message = "工号不能为空")
    private String id;
    @NotEmpty(message = "姓名不能为空")
    private String name;
    @NotEmpty(message = "学院不能为空")
    private String institution;
    @NotEmpty(message = "专业不能为空")
    private String department;
    @NotEmpty(message = "职称不能为空")
    private String title;
    @NotEmpty(message = "性别不能为空")
    @Size(min = 1, max = 1, message = "性别只能为M或F")
    private String gender;
    @NotNull(message = "年龄不能为空")
    private Integer age;
    @NotEmpty(message = "手机号不能为空")
    private String telephone;
    @NotEmpty(message = "邮箱不能为空")
    private String email;
}
